package com.cdd.permission.controller.api;

import com.cdd.permission.service.UserService;
import com.common.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author lenovo
 * @version 1.0
 * @since 2022-08-31  19:42:40
 */
@RestController
@RequestMapping("/api/permission/user")
public class ApiUserController {
    @Autowired
    private UserService userService;
    @RequestMapping("/findByUsername")
    public User findByUsername(@RequestParam String username ){
        return userService.selectUserName(username);
    }
}
